﻿using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System.Reflection;
using System.IO;
using EMC;

namespace TestEMC
{
    [TestClass]
    public class TestFriendManagement
    {
        static string dbConfigFile = Path.GetDirectoryName(Assembly.GetAssembly(typeof(TestFriendManagement)).CodeBase) + @"/db_settings.xml";
        static databaseConfiguration config = new databaseConfiguration(dbConfigFile);
        FriendManagement friendman = new FriendManagement(config);

        [TestMethod]
        public void TestaddFriend()
        {
            Assert.AreEqual(friendman.addfriend("dave", "billfred"), true);
        }
        
        [TestMethod]
        public void TestremoveFriend()
        {
            Assert.AreEqual(friendman.removefriend("dave", "billfred"), true);
        }
        
     }
}